/**
 * 
 */
package com.gr.staffpm.widget.jqgrid.component;

import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.list.ListView;


/**
 * @author Graham Rhodes 3 May 2011 02:38:38
 */
public abstract class SaveItemLink<T> extends EditableGridSubmitLink<T> {

    private static final long serialVersionUID = 1L;
    private final ListItem rowItem;

    public SaveItemLink(String id, WebMarkupContainer encapsulatingComponent) {
        super(id, encapsulatingComponent);
        this.rowItem = (ListItem) encapsulatingComponent;
    }

    protected final ListView getListView() {
        return (ListView) rowItem.getParent();
    }

}
